package cn.bdqn.dao.appinfo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.entity.AppInfo;

public interface AppInfoDao{

	List<AppInfo> findAll(Map<String, Object> checkMap) throws Exception;

	Integer findAppInfoCount(Map<String, Object> checkMap) throws Exception;

	Integer save(AppInfo appInfo) throws Exception;

	AppInfo findAppInfoByApkname(@Param("apkname")String apkname) throws Exception;

	AppInfo findAppInfoById(@Param("id")Integer id) throws Exception;

	Integer update(AppInfo appInfo) throws Exception;

	String findAppInfoPicpathById(@Param("id") Long id) throws Exception;

	String findAPKNameById(@Param("id")Long appid) throws Exception;

	int delAppInfo(@Param("appid")Integer appid) throws Exception;

	int updatestatus(@Param("status")Long status, @Param("id")Long id) throws Exception;

	Integer updateAppStatusName(Long id) throws Exception;

	Integer updateAppStatusNameDown(Long id) throws Exception;

}
